package com.moonshineproject.plugin.actionscript.as3parser.completers
{
	public class AccessLevels
	{
		public static const PRIVATE:int = 0;
		public static const INTERNAL:int = 1;
		public static const PROTECTED:int = 2;
		public static const PUBLIC:int = 3;
		
		public static function stringToLevel(str:String):int
		{
			return  (str == "public") ? AccessLevels.PUBLIC :
					(str == "protected") ? AccessLevels.PROTECTED :
					(str == "private") ? AccessLevels.PRIVATE :
					AccessLevels.INTERNAL;
		}
	}
}